http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/WOStatsNote: You can access any component directly using a URL with this form.
Figure 37 shows a WOStats page.
The source for the WOStats page is provided, along with the source for all of the components in the WOExtensions framework, in /System/Developer/Examples/WebObjects/Source/WOExtensions (NeXT_ROOT\Developer\Examples\WebObjects\Source\WOExtensions on Windows NT systems).
If you want access to statistics programmatically, send the WOStatisticsStore a statistics message. For example:
// WebScriptFor a list of keys to this dictionary, see the WOStatisticsStore class specification in the WebObjects Class Reference.
NSDictionary *myDict = [[[self application] statisticsStore]
statistics]; // Java
NSDictionary myDict =
this.application().statisticsStore().statistics;
Note that this dictionary is created on demand. It is costly to call this method repeatedly.
Table of Contents
Next Section